keysDown
Type
function
Summary
Returns a list of the keys currently being pressed.
Syntax
the keysDown
keysDown()
Description
Use the keysDown function to respond to a keypress while a handler is being executed.
The keycodes returned by the keysDown function are the same as those passed as parameters with the rawKeyDown and rawKeyUp messages.
The keysDown function returns empty if no keys are being pressed.
Examples
the keysDown
if myKey is in the keysDown then exit to top
Value
Name | Type | Description |
---|---|---|
return | The keysDown function returns a list of keycodes of pressed keys, separated by commas if more than one key is being pressed. |
Related
message: rawKeyUp, keyUp, rawKeyDown, keyDown, controlKeyDown
control structure: function
function: shiftKey, altKey, capsLockKey, optionKey, commandKey, controlKey
glossary: return, keycode, handler, execute, pass, message, parameter
Compatibility and Support
Introduced
LiveCode 1.1
OS
mac
windows
linux
Platforms
desktop
server